package com.andrew.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class Order {
	private String OrderId;//订单id
	private String Address;//收获地址
	private BigDecimal totalPrice;//总金额
	private String CreateDate;//创建时间
	private int STATUS;//状态
	private String VC;//取货码
	
	private Customer customer;//订单所有者
	private List<OrderDetail> orderDetailsList;//当前订单下所有条目
	public String getOrderId() {
		return OrderId;
	}
	public void setOrderId(String orderId) {
		OrderId = orderId;
	}
	public String getAddress() {
		return Address;
	}
	public void setAddress(String address) {
		Address = address;
	}
	public BigDecimal getTotalPrice() {
		return totalPrice;
	}
	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}
	public String getCreateDate() {
		return CreateDate;
	}
	public void setCreateDate(String createDate) {
		CreateDate = createDate;
	}
	public int getSTATUS() {
		return STATUS;
	}
	public void setSTATUS(int sTATUS) {
		STATUS = sTATUS;
	}
	public String getVC() {
		return VC;
	}
	public void setVC(String vC) {
		VC = vC;
	}
	public Customer getCustomer() {
		return customer;
	}
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
	public List<OrderDetail> getOrderDetailsList() {
		return orderDetailsList;
	}
	public void setOrderDetailsList(List<OrderDetail> orderDetailsList) {
		this.orderDetailsList = orderDetailsList;
	}
	@Override
	public String toString() {
		return "Order [OrderId=" + OrderId + ", Address=" + Address + ", totalPrice=" + totalPrice + ", CreateDate="
				+ CreateDate + ", STATUS=" + STATUS + ", VC=" + VC + ", customer=" + customer + ", orderDetailsList="
				+ orderDetailsList + "]";
	}
	public Order(String orderId, String address, BigDecimal totalPrice, String createDate, int sTATUS, String vC,
			Customer customer, List<OrderDetail> orderDetailsList) {
		super();
		OrderId = orderId;
		Address = address;
		this.totalPrice = totalPrice;
		CreateDate = createDate;
		STATUS = sTATUS;
		VC = vC;
		this.customer = customer;
		this.orderDetailsList = orderDetailsList;
	}
	
	
	public Order() {}

	
}
